-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(html): add html reporter to rockspec #103
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved the files and included datafile as a dependency. Thx for the fix
Thank you, @Tieske, for the merge! I can see you removed the mention that the HTML Reporter depends on datafile. Should we consider as a good practice to change the local datafile_available, datafile = pcall(require, 'datafile')
if not datafile_available then
-- print a message to inforn the user they need to install datafile, then exit the program
end |
@Aire-One you're right, it is omitted. My intent was to add it to the rockspec as a dependency, but I see that I missed that. |
see #108 |
Hello 👋
Following my message in #98, here are the necessary changes to make the Html reporter work with the Luarocks package.
It adds a new optional dependency on datafile. Because it's optional (only required by the Html reporter), I haven't pushed it to the rockspec's
dependencies
table.Alternatively, we could have included the file's content as long strings in the
reporter.html.*
module. Since the static files are larges, I think it's better to manage them as regular files in the repository and access them withdatafile
.Fixes #98